<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        
                        <div class="space-4"></div>
                        <div class="row">
                            <form id="form" method="post" action="{:U('del')}">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                    <tr  class="center"> <th colspan="7" style="text-align:center;">7S查核考评表</th></tr>
                                     <tr>

              <th colspan="7">编号：YD-GG-XZ-7S查核考评表</th>
              </tr>
             <tr>
             <th style="width:100px;">填写说明</th><th colspan="5"><textarea cols="208" rows="2" style="background-color:#F2F2F2;border:none;"></textarea></th>
              </tr>
              <tr>
              <th  style="width:100px;">日期</th><th colspan="5"><input type="text" name="" style="background-color:#F2F2F2;border:none;"></th>
              </tr>
              <tr class="center" id="back_color">
              <td>序号</td> <td>类别</td> <td>行为表现</td> <td>分值</td> <td>得分</td> <td>备注</td>
              </tr>
              <tr class="center">
              <td>1</td> 
              <td>素养</td> 
              <td class="grouptd">男员工无胡须、无长发：女员工妆容得体、不披头散发、指甲清洁，所有员工不得穿拖鞋、短裤、奇装艳服。</td>
              <td>10</td> 
              <td><input type="text" name="" style="background-color:#F2F2F2;"></td> 
              <td><textarea cols="48" rows="2" style="border:none;background-color:#F2F2F2;"></textarea></td></tr>
              <tr class="center" id="back_color">
              <td>2</td> <td>整顿</td> <td class="grouptd">所有办公用品摆放整洁整齐，椅子离开归位。</td>
              <td>20</td> 
              <td><input type="text" name=""></td> 
              <td><textarea cols="48" rows="2" style="border:none;" ></textarea></td></tr>
              <tr class="center">
              <td>3</td> <td>清扫</td> <td class="grouptd">桌面办公设备无污垢、灰尘，电脑显示器、主机明亮无污渍。</td> 
              <td>10</td> 
              <td><input type="text" name="" style="background-color:#F2F2F2;"></td> 
              <td><textarea cols="48" rows="2" style="border:none;background-color:#F2F2F2;"></textarea></td>
              </tr>
              <tr class="center" id="back_color">
              <td>4</td> <td>整理</td> <td class="grouptd">桌面必用小物件有固定摆放位置、包包、衣物等放置在储物柜里，办公桌下面电脑线捆扎整齐同。</td> 
              <td>20</td> 
              <td><input type="text" name=""></td> 
              <td><textarea cols="48" rows="2" style="border:none;" ></textarea></td>
              </tr>
              <tr class="center">
              <td>5</td> <td>清扫</td> <td class="grouptd">地面干净、无杂物垃圾，垃圾桶外无任何遗落垃圾。</td> 
              <td>10</td> 
              <td><input type="text" name="" style="background-color:#F2F2F2;"></td> 
              <td><textarea cols="48" rows="2" style="border:none;background-color:#F2F2F2;"></textarea></td>
              </tr>
              <tr class="center" id="back_color" style="border:none;background-color:#F2F2F2;">
              <td>6</td> <td>清洁</td> <td class="grouptd">公共区域通道有垃圾、污迹，立即通知保洁人员打扫；外墙张贴画报有损坏，立即通知行政中心安排补救。</td> 
              <td>10</td>
              <td><input type="text" name=""></td>
              <td><textarea cols="48" rows="2" style="border:none;" ></textarea></td>
              </tr>
              <tr class="center" >
              <td>7</td> <td>安全/节约</td> <td class="grouptd">下班及时关灯、关空调、饮水机，不用的电脑及用电设备断电，不浪费饮用水，不浪费。</td>
              <td>10</td> 
              <td><input type="text" name="" style="background-color:#F2F2F2;"></td> 
              <td><textarea cols="48" rows="2" style="border:none;background-color:#F2F2F2;" ></textarea></td>
              </tr>
              <tr class="center" id="back_color" style="border:none;background-color:#F2F2F2;">
              <td>8</td > <td>清扫</td> <td>绿色植物生长情况。</td> 
              <td>10</td> 
              <td><input type="text" name=""></td> 
              <td id="back_c"><textarea cols="48" rows="2" style="background-color:#fff;border:none;" ></textarea></td>
              </tr>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <style>
                                        .grouptd {
                                            position: relative;
                                        }

                                        .group {
                                            display: inline-block;
                                            width: 100%;
                                        }

                                        .groupselect {
                                            position: absolute;
                                            top: 0;
                                            left: 0;
                                            width: 100%;
                                            height: 100%;
                                            border: 0;
                                        }
                                        .center input{
                                            border:none;
                                        }
                                        #back_color td{
                                            background-color:#fff;
                                             border:none;
                                        }
                                       
                                    </style>
                                  
                                    </tbody>
                                </table>
                            </form>
                            <div class="cf">
                                <input id="submit" class="btn btn-info" type="button" value="删除">
                            </div>
                            {$page}
                        </div>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        $(".group").click(function () {
            $(this).addClass('hide');
            $(this).parent().find(".groupselect").removeClass('hide');
        })
        $(".groupselect").on("change", function () {
            var ob = $(this);
            var gid = ob.val();
            var uid = ob.parent().find('.group').attr('val');
            $.get("{:U('update')}?ajax=yes&uid=" + uid + "&gid=" + gid, function (data) {
                var text = ob.find("option:selected").text();
                ob.parent().find(".group").removeClass('hide').html(text);
                ob.addClass('hide');
            });
        })

        $(".check-all").click(function () {
            $(".uids").prop("checked", this.checked);
        });
        $(".uids").click(function () {
            var option = $(".ids");
            option.each(function (i) {
                if (!this.checked) {
                    $(".check-all").prop("checked", false);
                    return false;
                } else {
                    $(".check-all").prop("checked", true);
                }
            });
        });
        $("#submit").click(function () {
            bootbox.confirm({
                title: "系统提示",
                message: "是否要删除所选用户？",
                callback: function (result) {
                    if (result) {
                        $("#form").submit();
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
        $(".del").click(function () {
            var url = $(this).attr('val');
            bootbox.confirm({
                title: "系统提示",
                message: "是否要删除该用户?",
                callback: function (result) {
                    if (result) {
                        window.location.href = url;
                    }
                },
                buttons: {
                    "cancel": {"label": "取消"},
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
    })
</script>
</body>
</html>
